﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FlyingHat.Core.Migrations
{
    public partial class isOpen : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsOpen",
                table: "Library",
                type: "tinyint(1)",
                nullable: false,
                defaultValue: false);

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 28, 21, 10, 18, 310, DateTimeKind.Local).AddTicks(391), new DateTime(2021, 12, 28, 21, 10, 18, 310, DateTimeKind.Local).AddTicks(397), new DateTime(2021, 12, 28, 21, 10, 18, 310, DateTimeKind.Local).AddTicks(377), "AF6BA89EA5C136C69FCCEEE7D3F5D8E3", "B1A06D30B29B19BFEAFFC60AF2589AF4142F9E4F360AB0143E469F6849A893039EDF3113" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsOpen",
                table: "Library");

            migrationBuilder.UpdateData(
                table: "User",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "CreatedTime", "LastLoginTime", "ModifyTime", "Password", "Salt" },
                values: new object[] { new DateTime(2021, 12, 27, 12, 40, 20, 159, DateTimeKind.Local).AddTicks(5471), new DateTime(2021, 12, 27, 12, 40, 20, 159, DateTimeKind.Local).AddTicks(5474), new DateTime(2021, 12, 27, 12, 40, 20, 159, DateTimeKind.Local).AddTicks(5459), "8B8734C1F1BB74D7AC032F74E2690CF1", "2A90DD1C5F5868F0F986AB141695CCD8EDEC6F7D79E7F481C23853D2276C0BB1CA76C8CF" });
        }
    }
}
